package com.rui.responsibility.model;

import com.rui.responsibility.obj.User;

/**
 * @Description: 权限校验
 * @Author: ZhangRui
 * @Date: 2023/3/3 14:53
 * @Version: 1.0
 */
public class AuthHandler extends Handler {

    @Override
    public void doHandler(User user) {
        if (!"admin".equals(user.getRole())) {
            System.out.println("无权限操作!");
            return;
        }
        System.out.println("角色为管理员,可以进行下一步操作!");
    }

}
